PrintText command

Syntax
PrintText text [, format-string]

Description
Prints text to the printer. You can specify the font and font size; top, left, bottom, and right margins; begin and end pages; and whether or not to display the Page Setup and Print dialog boxes.

Format-string can include any of the following formatting properties.

Font:       Font ID or font name (default 3, Geneva)
Size:       Font size (default 10)
From:     Start page (default 1)
To:         Last page (default last page)
Top:       Top margin (default 72)
Left:       Left margin (default 72)
Bottom:   Bottom margin (default 72)
Right:      Right margin (default 72)

Page Setup:    Displays Page Setup dialog box
Print Dialog:   Displays Print dialog box

If a property is not specified, PrintText uses the default value. The Page Setup and Print Dialog properties have no default values; the dialog boxes appear only if you include the properties in the format string.

Margins are indicated in points (72 dots per inch).

The font name must be enclosed within curly quotes, such as “Helvetica”.

Examples
// Print using the Page Setup and Print dialog boxes
PrintText "This text will be printed", "Top: 36, Bottom: 144, Page Setup, Print Dialog"

// Print the first page of the file using Courier 12
PrintText File("Macintosh HD:Read Me").Text, "To: 1, Font: “Courier”, Size: 12"

// Print the Clipboard contents in Geneva 10 with default 1-inch margins
PrintText Clipboard